<?php


namespace App\Domain;

use App\Model\CartDetail as CartDetailModel;

class CartDetail
{
    public function getCartDetailInfoByCid($cart_id)
    {
        $model = new CartDetailModel();
        return $model->getCartDetailInfoByCid($cart_id);
    }

    public function insertCartDetailInfo($cart_id, $good_id, $good_num, $good_money)
    {
        $model = new CartDetailModel();
        return $model->insertCartDetailInfo($cart_id, $good_id, $good_num, $good_money);
    }

    public function getCartDetailInfoByCidAndGid($cart_id, $good_id)
    {
        $model = new CartDetailModel();
        return $model->getCartDetailInfoByCidAndGid($cart_id, $good_id);
    }
    public function updateCartDetailInfoById($cartDetail_id,$good_num,$good_money)
    {
        $model = new CartDetailModel();
        return $model->updateCartDetailInfoById($cartDetail_id,$good_num,$good_money);
    }
    public function deleteCartDetailInfoByCid($cart_id)
    {
        $model = new CartDetailModel();
        return $model->deleteCartDetailInfoByCid($cart_id);
    }
}